package com.tjbank.cssys.repository;

import com.tjbank.cssys.domain.CkOrderAchievementForm;
import com.tjbank.cssys.domain.CkOrderLoanIntelligenceDivision;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CkOrderLoanIntelligenceDivisionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CkOrderLoanIntelligenceDivision record);

    int insertSelective(CkOrderLoanIntelligenceDivision record);

    CkOrderLoanIntelligenceDivision selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CkOrderLoanIntelligenceDivision record);

    int updateByPrimaryKeyWithBLOBs(CkOrderLoanIntelligenceDivision record);

    int updateByPrimaryKey(CkOrderLoanIntelligenceDivision record);

    /**
     * 查询自动分案列表和分案还款查询管理
     *
     * @param map
     * @return
     */
    List<CkOrderLoanIntelligenceDivision> selectDivisionList(Map<String, String> map);

    /**
     * 根据id获取分案详情
     *
     * @param id
     * @return
     */
    CkOrderLoanIntelligenceDivision selectCkOderDivisionById(int id);

    /**
     * 根据idlist查询
     * @param ids
     * @return
     */
    List<CkOrderLoanIntelligenceDivision> selectByPrimaryKeyLsit(@Param("ids") String[] ids);



    /**
     * 查询账龄表2
     * @param map
     * @return
     */
    List<CkOrderLoanIntelligenceDivision> selectCkOrderAccountAgeForm2(Map<String, Object> map);

    /**
     * 获取还款记录基础信息
     * @param params
     * @return
     */
    List<CkOrderLoanIntelligenceDivision> getRecoverBasics(Map<String, String> params);

    List<CkOrderLoanIntelligenceDivision> getRecoverDetails(Map<String, String> params);

    CkOrderAchievementForm findBySerialNumbers1(Map<String,Object> params);
    List<CkOrderAchievementForm> findBySerialNumbers(Map<String,Object> params);

    CkOrderLoanIntelligenceDivision selectBySerialNumber(String serialNumber);
}